package com.ruoyi.project.system.subjects.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * subjects对象 subjects
 * 
 * @author admin
 * @date 2025-04-24
 */
public class Subjects extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 国标学科代码 */
    @Excel(name = "国标学科代码")
    private Long id;

    /** 学科名称 */
    @Excel(name = "学科名称")
    private String name;

    /** 父级学科代码 */
    @Excel(name = "父级学科代码")
    private Long parentId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("parentId", getParentId())
            .toString();
    }
}
